import { reactive, ref } from "vue";

export default function InitHook() {
  const formDataRef = ref<any>(null);
  const loading = ref<boolean>(false);
  const formState = reactive<{ orderEndType: string; orderEndDays: number }>({
    orderEndType: "",
    orderEndDays: 0
  });
  return {
    formDataRef,
    loading,
    formState
  };
}
